import { App, ButtonGroupControl } from "vjmap3d";

export const loadUI = (app: App, start: Function, stop: Function) => {
    let control = new ButtonGroupControl({
        buttons: [
          {
            id: 'reset-settings',
            html: "启动",
            style: {
              width: "30px"
            },
            onclick: async () => {
                start();
            },
          },
          {
            id: 'clear-scene',
            icon: "停止",
            style: {
              width: "30px"
            },
            onclick: async () => {
                stop();
            },
          },
        ],
        direction: "column",
    });
    app.addControl(control, "top-right")
}